package com.gticket.buyticket.mapper;

import com.gticket.buyticket.pojo.Cinema;
import com.gticket.buyticket.pojo.Movie;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CinemaMapper {

    //查询出所有的电影院｛电影院页面｝
    @Select("select * from ${database}.cinema")
    public List<Cinema> getCinemas();

    //根据cinema_id查单个电影院｛｝
    @Select("select * from ${database}.cinema where cinema_id=#{cinema_id}")
    public Cinema getCinemaInfo(Cinema cinema);

}
